part of '../fragment.dart';

class _TileButton extends StatelessWidget {
  const _TileButton({
    required this.title,
    required this.onPressed,
    Key? key,
  }) : super(key: key);

  final String title;
  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return AppButton(
      color: CoreTheme.of(context).primaryColor,
      padding: const EdgeInsets.symmetric(
        horizontal: 8,
      ),
      borderRadius: BorderRadius.circular(12),
      onPressed: onPressed,
      child: SizedBox(
        height: 24,
        child: Center(
          child: Text(
            title.toUpperCase(),
            style: PurchaseManagementFragmentTheme.of(context).textTheme.tileButtonTitle,
          ),
        ),
      ),
    );
  }
}
